package com.luu.game.service.logic.elfRareFactory;

import org.springframework.stereotype.Component;

/**
 * 属性值算法
 */
@Component
public class PropertyAlgorithm {

    private PropertyAlgorithm(){}

    /**
     * 属性生成
     * @param min
     * @param max
     * @return
     */
    public static Double countProperty(Double min, Double max){
        Double number = max - min;
        final double rand = Math.random() * number;
        Double result = rand + min;
        return result;
    }

}
